chore(deps): update cargo-semver-checks to v0.40.0 #15282
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.39.0->0.40.0Release Notes
obi1kenobi/cargo-semver-checks (cargo-semver-checks)
v0.40.0Compare Source
In this release
#[doc(hidden)]and sealed lintsThis release requires Rust 1.83+ both to install (MSRV) and at runtime. Future releases will require Rust 1.84+.
Spotlight:
#[doc(hidden)]and sealed lintsWhen is "this trait can be implemented" part of the trait's public API?
At a high level, the answer is: when writing an
implof that trait for our own type doesn't require using any#[doc(hidden)]items. But you've been followingcargo-semver-checkslong enough to know the full answer is much more complex. And getting the right answer here affects the correctness of a ton of lints!Good news! This
cargo-semver-checksrelease ships with a much more sophisticated system for analyzing whether traits can be implemented or are instead "sealed." The new system is more thorough, more nuanced, and faster to boot!Read more about it here: https://predr.ag/blog/when-is-trait-can-be-implemented-public-api/
New lints
We added new 21 lints across several categories. Some of the new lints are error-by-default, while others are merely warnings meant to flag changes deserving closer review.
API breakage:
static_became_unsafeABI and FFI breakage due to changed
repr(C)type layout:repr_c_enum_struct_variant_fields_reorderedrepr_c_plain_struct_fields_reorderedItem deprecations, which cause lints in downstream use:
function_marked_deprecatedglobal_value_marked_deprecatedmacro_marked_deprecatedproc_macro_marked_deprecatedstruct_field_marked_deprecatedtrait_associated_const_marked_deprecatedtrait_associated_type_marked_deprecatedtrait_marked_deprecatedtrait_method_marked_deprecatedtype_associated_const_marked_deprecatedtype_method_marked_deprecatedCode behavior changes, such as changes to sort order of existing types:
partial_ord_enum_struct_variant_fields_reorderedpartial_ord_enum_variants_reorderedpartial_ord_struct_fields_reorderedCompatibility risks, such as changes that may require a SemVer major bump to revert, or may otherwise represent unintended API changes without being SemVer-major themselves:
pub_api_sealed_trait_became_unconditionally_sealedunconditionally_sealed_trait_became_pub_api_sealedunconditionally_sealed_trait_became_unsealedpub_api_sealed_trait_became_unsealedThanks to @Frank-III, @geetanshjuneja, and @lovelindhoni for contributing lints to this release!
All merged PRs
trait_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1092cargo updateof dependencies by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1097function_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1093trait_method_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1098trait_associated_type_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1099trait_associated_const_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1100global_value_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1101macro_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1102sealedproperty with newunconditionally_sealed. by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1104proc_macro_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1118struct_field_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1125span_end_lineto lints with spans by @suaviloquence in https://github.com/obi1kenobi/cargo-semver-checks/pull/1126type_method_marked_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1130type_associated_const_deprecatedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1131cargo updateof dependencies by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1136cargo updateof dependencies by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1140cargo check. by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1145repr_c_plain_struct_fields_reorderedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1138cargo updateof dependencies by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1147repr_c_enum_struct_variant_fields_reorderedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1152partial_ord_struct_field_reorderedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1161partial_ord_enum_variants_reorderedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1163partial_ord_enum_struct_variant_fields_reorderedby @Frank-III in https://github.com/obi1kenobi/cargo-semver-checks/pull/1165pub_api_sealed_trait_became_unsealedby @lovelindhoni in https://github.com/obi1kenobi/cargo-semver-checks/pull/1162unconditionally_sealed_trait_became_unsealedby @lovelindhoni in https://github.com/obi1kenobi/cargo-semver-checks/pull/1164pub_api_sealed_trait_became_unconditionally_sealedby @lovelindhoni in https://github.com/obi1kenobi/cargo-semver-checks/pull/1166unconditionally_sealed_trait_became_pub_api_sealedby @lovelindhoni in https://github.com/obi1kenobi/cargo-semver-checks/pull/1167cargo updateof dependencies by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1168#![no_std]in test crates to speed up tests. by @obi1kenobi in https://github.com/obi1kenobi/cargo-semver-checks/pull/1171New Contributors
Full Changelog: obi1kenobi/cargo-semver-checks@v0.39.0...v0.40.0
Configuration
📅 Schedule: Branch creation - "* * * * *" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.